package com.mytijian.task.task.process;

import com.mytijian.task.enums.TaskStatusEnum;
import com.mytijian.task.model.SubTask;
import com.mytijian.task.model.TaskIdentify;

public interface ProcessLifecycle {
    void beforeTaskProcess(TaskIdentify taskIdentify);
    void beforeSubTaskProcess(SubTask subTask, TaskIdentify taskIdentify);

    void afterSubTaskProcess(SubTask subTask, TaskIdentify taskIdentify, Exception e);


    void taskProcessComplete(TaskIdentify taskIdentify, TaskStatusEnum taskStatusEnum, Exception e);
}
